#include "adjustrplayrate.h"
#include "ui_adjustrplayrate.h"

adjustrplayrate::adjustrplayrate(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::adjustrplayrate)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);
    ui->pushButton_2->setStyleSheet("color:rgb(0, 246, 246)");
}

adjustrplayrate::~adjustrplayrate()
{
    delete ui;
}

void adjustrplayrate::on_pushButton_clicked()
{
    ui->pushButton->setStyleSheet("color:rgb(0, 246, 246)");
     ui->pushButton_2->setStyleSheet("color:white");
    ui->pushButton_3->setStyleSheet("color:white");
     ui->pushButton_4->setStyleSheet("color:white");
    ui->pushButton_5->setStyleSheet("color:white");
     pei=0.5;
    emit changepei(pei);
}


void adjustrplayrate::on_pushButton_2_clicked()
{
    ui->pushButton_2->setStyleSheet("color:rgb(0, 246, 246)");
    ui->pushButton->setStyleSheet("color:white");
    ui->pushButton_3->setStyleSheet("color:white");
    ui->pushButton_4->setStyleSheet("color:white");
    ui->pushButton_5->setStyleSheet("color:white");
    pei=1;
    emit changepei(pei);

}


void adjustrplayrate::on_pushButton_3_clicked()
{
    ui->pushButton_3->setStyleSheet("color:rgb(0, 246, 246)");
    ui->pushButton_2->setStyleSheet("color:white");
    ui->pushButton->setStyleSheet("color:white");
    ui->pushButton_4->setStyleSheet("color:white");
    ui->pushButton_5->setStyleSheet("color:white");
    pei=1.0;
    emit changepei(pei);


}


void adjustrplayrate::on_pushButton_4_clicked()
{
    ui->pushButton_4->setStyleSheet("color:rgb(0, 246, 246)");
    ui->pushButton_2->setStyleSheet("color:white");
    ui->pushButton_3->setStyleSheet("color:white");
    ui->pushButton->setStyleSheet("color:white");
    ui->pushButton_5->setStyleSheet("color:white");
    pei=1.5;
    emit changepei(pei);

}


void adjustrplayrate::on_pushButton_5_clicked()
{
    ui->pushButton_5->setStyleSheet("color:rgb(0, 246, 246)");
    ui->pushButton_2->setStyleSheet("color:white");
    ui->pushButton_3->setStyleSheet("color:white");
    ui->pushButton_4->setStyleSheet("color:white");
    ui->pushButton->setStyleSheet("color:white");
    pei=2.0;
    emit changepei(pei);

}

